import sys
import os
from Utils.handle_cookie import get_cookie_value
base_path = os.getcwd()
sys.path.append(base_path)
from Utils.handle_json import read_json

def get_header():
    data=read_json("/config/header.json")
    return data


def replace_header(cookie_key):
    cookie=get_cookie_value(cookie_key)
    data=get_header()
    data['Cookie']=cookie
    return data

